package com.thinkgem.jeesite.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.thinkgem.jeesite.kpoint.core.base.KpointBaseEntity;
import lombok.Data;

import java.util.List;

/**
 * @Author:Kongxiangsheng
 * @DesCription:
 * @Date:Created in 14:42 2018/8/14
 * @Modified By:
 */
@Data
public class SysOffice extends KpointBaseEntity {
    public static final String COL_PARENT_ID = "`parent_id`";
    public static final String COL_PARENT_IDS = "`parent_ids`";
    public static final String COL_NAME = "`name`";
    public static final String COL_SORT = "`sort`";
    public static final String COL_AREA_ID = "`area_id`";
    public static final String COL_CODE = "`code`";
    public static final String COL_TYPE = "`type`";
    public static final String COL_GRADE = "`grade`";
    public static final String COL_ADDRESS = "`address`";
    public static final String COL_ZIP_CODE = "`zip_code`";
    public static final String COL_MASTER = "`master`";
    public static final String COL_PHONE = "`phone`";
    public static final String COL_FAX = "`fax`";
    public static final String COL_EMAIL = "`email`";
    public static final String COL_USEABLE = "`useable`";
    private static final long serialVersionUID = 1L;

    private String parentId;
    private String parentIds;
    private String name;
    private Integer sort;
    private String areaId;
    private String code;
    private String type;
    private Integer grade;
    private String address;
    private String zipCode;
    private String master;
    private String phone;
    private String fax;
    private String email;
    private String useable;

    /**
     * 快速添加子部门
     */
    @TableField(exist = false)
    private List<String> childDeptList;
    /**
     * 机构名称-全路径
     */
    @TableField(exist = false)
    private String namePath;

}
